public class BankOfDalian extends Bank {
	private int day;
	// 大连银行日利率（假设与建行不同）
	private double dayRate = 0.00012;

	public BankOfDalian(double money, double year, double rate) {
		super(money, year, rate);
		this.day = (int) Math.round((year - (int) year) * 365);
		super.year = (int) year;
	}

	public double computerInterest() {
		// 【代码2】用super调用父类的利息计算方法（获取整年利息）
		double yearInterest = super.computerInterest();
		// 大连银行零头天数利息
		double dayInterest = money * day * dayRate;
		return yearInterest + dayInterest;
	}
}